function OnInit(id)
    print("[lua] main OnInit id : " .. id)

    sunnet.NewService("chat")

    -- local ping1 = sunnet.NewService("ping")
    -- local ping2 = sunnet.NewService("ping")
    -- local pong = sunnet.NewService("ping")

    -- sunnet.Send(ping1, pong, "hha")
    -- sunnet.Send(ping2, pong, "ping2->pong")

    -- sunnet.KillService(ping1)
    -- sunnet.KillService(ping2)
    -- sunnet.KillService(pong)
end 

function OnExit() 
    print("[lua] main OnExit")
end 